package com.enki.adminplatform.controller;

import com.enki.adminplatform.entity.SysUser;
import com.enki.adminplatform.service.SysUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author yinyin
 * @create 2021/07/22 下午 5:55
 */
@Slf4j
@Api(description = "用户管理")
@RestController
@RequestMapping("sys/user")
public class TestController {
    @Autowired
    SysUserService userService;

    @ApiOperation("测试接口-查询用户列表")
    @GetMapping("test")
    public Object getUser(){
        List<SysUser> users = userService.list();


        return users;
    }
}
